<?php

namespace app\modules\system\controllers;

use Yii;
use app\controllers\InternalBaseController;
use app\modules\system\actions as actions;

class ImageController extends InternalBaseController {
    
    public function init(){
        
    }
    
    // 用户-图片列表
    public function actionImagelist() {
        $post= Yii::$app->request->get();
        if(empty($post)) {
            $post= Yii::$app->request->post();
        }
        $action = new actions\Image();
        $ret = $action->ImageList($post);
        return $ret;
    }
    
    //图片识别列表
    public function actionRecognitionlist() {
        $post= Yii::$app->request->get();
        if(empty($post)) {
            $post= Yii::$app->request->post();
        }
        $action = new actions\Image();
        $ret = $action->RecognitionList($post);
        return $ret;
    }
    
    public function actionDownloadimage() {
        $post= Yii::$app->request->get();
        if(empty($post)) {
            $post= Yii::$app->request->post();
        }
        $action = new actions\Image();
        $ret = $action->DownloadImage($post);
        return $ret;
    }
}